package mips.instructions;

public class UNHANDLED extends Instruction {

	private static final String insName = "UNHANDLED";

	private static UNHANDLED instance = null;

	private UNHANDLED() {
	}

	public static final UNHANDLED getInstance() {

		if (instance == null) {

			instance = new UNHANDLED();
		}

		return instance;
	}

	public final void execute(final int instruction) {

		System.out.println("Unhandled instruction: " + String.format("0x%08X",instruction) + " at PC: "
				+ String.format("0x%08X",mips.R4300i.PC));
	}

	public final String emit(final int instruction) {

		return "Cannot emit UNHANDLED instruction: " + String.format("0x%08X",instruction) + " at PC: "
				+ String.format("0x%08X",mips.R4300i.PC);
	}

	public final String getName() {

		return insName;
	}
}